home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / JOptionPane$3.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.2 KB  |  33 lines

  1. package javax.swing;
  2.  
  3. import java.beans.PropertyChangeEvent;
  4. import java.beans.PropertyChangeListener;
  5. import java.beans.PropertyVetoException;
  6. import java.util.EventObject;
  7.  
  8. final class JOptionPane$3 implements PropertyChangeListener {
  9.    // $FF: synthetic field
  10.    private final JOptionPane this$0;
  11.    // $FF: synthetic field
  12.    private final JInternalFrame val$iFrame;
  13.  
  14.    // $FF: synthetic method
  15.    JOptionPane$3(JInternalFrame var1, JOptionPane var2) {
  16.       this.val$iFrame = var1;
  17.       this.this$0 = var2;
  18.    }
  19.  
  20.    public void propertyChange(PropertyChangeEvent var1) {
  21.       if (this.val$iFrame.isVisible() && ((EventObject)var1).getSource() == this.this$0 && (var1.getPropertyName().equals("value") || var1.getPropertyName().equals("inputValue"))) {
  22.          try {
  23.             this.val$iFrame.setClosed(true);
  24.          } catch (PropertyVetoException var2) {
  25.          }
  26.  
  27.          this.val$iFrame.setVisible(false);
  28.          this.val$iFrame.stopModal();
  29.       }
  30.  
  31.    }
  32. }
  33.